body {
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#taskInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 10px 20px;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #45a049;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    background: #f8f8f8;
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease
}

li.completed {
    background: #e0e0e0;
    text-decoration: line-through;
    opacity: 0.7;
}

.delete-btn {
    background: #ff4444;
    border-radius: 4px;
    padding: 5px 10px;
}

/* 优先级颜色定义 */
li .priority {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.low-priority { background: #4CAF50; }    /* 绿色 */
.medium-priority { background: #FFC107; } /* 黄色 */
.high-priority { background: #df2d83; }   /* 玫红色 */
.urgent-priority { background: #F44336; }   /* 红色 */

/* 调整任务项布局 */
li span {
    display: flex;
    align-items: center;
}